package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.entity.SettleAccount;
import com.woniuxy.entity.Unpack;
import com.woniuxy.mapper.SettleAccountMapper;
import com.woniuxy.service.SettleAccountService;
import com.woniuxy.service.UnpackService;
@Service
public class SettleAccountServiceImpl implements SettleAccountService{
	@Autowired
	private SettleAccountMapper settleAccountMapper;
	@Autowired
	private UnpackService unpackService ;
	@Override
	public List<SettleAccount> all() {
		
		return settleAccountMapper.all();
	}
	@Override
	public int addSettleAccount(SettleAccount settleAccount,int upid) {
		unpackService.updateUnpackStatus(upid);
		return settleAccountMapper.addSettleAccount(settleAccount);
	}

}
